package com.hdit.guimei.mapper;

import com.hdit.guimei.domain.Announcement;

import java.util.List;

/**
 * @author 张宝玉
 * @date 2021/1/19 15:27
 */
public interface AnnouncementMapper {
    /**
     *@methodName  findannouncement
     *@方法功能描述：查看所有的公告内容
     *@params  []
     *@return  java.util.List<com.hdit.guimei.domain.Announcement>
     *@author   张宝玉
     *@Date    2021/1/19 15:59
     */
    public List<Announcement> findannouncement();
    /**
     *@methodName  updateannouncement
     *@方法功能描述：修改公告
     *@params  [announcement]
     *@return  int
     *@author   张宝玉
     *@Date    2021/1/19 16:29
     */
    public int updateannouncement(Announcement announcement);
    /*
     *@methodName  deleannouncement
     *@方法功能描述：删除公告
     *@params  [id]
     *@return  int
     *@author   张宝玉
     *@Date    2021/1/19 17:18
     */
    public int deleannouncement(int id);
    /**
     *@methodName  addannouncement
     *@方法功能描述：增加公告
     *@params  [announcement]
     *@return  int
     *@author   张宝玉
     *@Date    2021/1/19 17:39
     */
    public int addannouncement(Announcement announcement);
}

